import CinemasList from "../../modules/cinemas/showall.js";
import AddCinema from "../../modules/cinemas/addcinema.js";
import CinemaDetail from "../../modules/cinemas/cinemaDetail.js";
import EditCinema from "../../modules/cinemas/editcinema.js";
import QueryCinemas from "../../modules/cinemas/queryCinemas.js";

export default {
    //显示所有影院列表
    "/showall": {
        on: () => {
            new CinemasList("app");// 显示影院列表  
        }
    },
    //添加影院
    "/addcinema": {
        on: () => {
            new AddCinema("app");
        }
    },
    //显示影院详细信息
    "/cinemadetail/:cinemaId": {
        on: (id) => {
            new CinemaDetail("app", id);
        }
    },
    //修改影院信息
    "/editcinema/:cinemaId": {
        on: (id) => {
            new EditCinema("app", id);
        }
    },
    //分类查询影院信息
    "/addressquery": {
        on: () => {
            new QueryCinemas("app");
        }
    },
}